package com.ship.service;

import com.ship.commens.Result;
import com.ship.dto.AccountDto;
import com.ship.model.Account;

import javax.servlet.http.HttpSession;
import java.util.List;


/**
* @author Lucky Boy
* @description 针对表【account】的数据库操作Service
* @createDate 2024-07-01 11:52:58
*/
public interface AccountService {
    List<Account> findAll();

    boolean hasAccount(String username);

    Result findLogin(AccountDto accountDto, HttpSession session);

    Result modifyAccountImgUrl(HttpSession session,String imgUrl);

    Result findAccountsByPage(Integer pageNum, Integer pageSize);

    Result modifyAccountStatus(Integer status, Long id, HttpSession session);

    Result modifyRestyAccountPwd(Long id, HttpSession session);

    Result saveAccount(String username, HttpSession session);

    Result removeOneAccountById(Long id, HttpSession session);

    Result modifyAccountPwd(String newPwd, HttpSession session);
}
